# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
pkgname=ocean-sound-theme
pkgver=6.0.4
pkgrel=0
pkgdesc="Ocean Sound Theme for Plasma"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://invent.kde.org/plasma/ocean-sound-theme"
license="BSD-2-Clause AND CC-BY-SA-4.0 and CC0-1.0"
makedepends="
	extra-cmake-modules
	qt6-qttools-dev
	samurai
	"
_repo_url="https://invent.kde.org/plasma/ocean-sound-theme.git"
source="https://download.kde.org/stable/plasma/$pkgver/ocean-sound-theme-$pkgver.tar.xz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

check() {
	ctest --test-dir build --output-on-failure
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
c3683b71ca672aa20c4a20b23689ef2f868fae15758fac9116cb6ae40afa56cd5db540c8a1e5b7745446ae6d8c76a45e522e21882d0a5bcfd6aaa9804a1814f3  ocean-sound-theme-6.0.4.tar.xz
"
